package com.farm.wcp.onlineService;

import java.util.List;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.farm.wcp.DO.FileInformationDo;
import com.farm.wcp.pojo.FileInformation;
@Service
public class FileInformationServiceImpl implements onlineInterface {
	@Resource
	private FileInformationDo informationDo;
	//所有信息
	@Override
	@Transactional
	public List<FileInformation> select() {
		// TODO Auto-generated method stub
		return informationDo.select();
	}
	@Transactional
	@Override
	public boolean save(Object object) {
		// TODO Auto-generated method stub
		 return informationDo.save((FileInformation) object);		
	}
	//分页查询所有信息
	@Transactional
	@Override
	public List<FileInformation> select(int size, int page) {
		// TODO Auto-generated method stub
		return informationDo.select(size,page);
	}
	//分页查询分类信息
	@Transactional
	@Override
	public List<FileInformation> select(int size, int page, int type) {
		// TODO Auto-generated method stub
		return informationDo.select(size,page,type);
	}
	//分类所有信息
	@Transactional
	@Override
	public List<FileInformation> select(int type) {
		// TODO Auto-generated method stub
		return informationDo.select(type);
	}

}
